<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/MyPage.tld" prefix="pt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>部门管理</title>
<link rel="stylesheet" type="text/css" href="css/admin_style.css" />
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/iframe.js"></script>
<script>
var msg="${msg}";
	if(msg!=""){
		alert(msg);
	}
</script>
</head>
<body class="right_body">
	<div class="body">
		<div class="top_subnav">CMS内容管理平台 ＞ 部门管理</div>
		
        <div class="tablelist">
		<table class="table">
			<tr>
			<th colspan="8" class="top_th"><a href="departEdit.jsp?id=0" class="add"><em>添加</em><span></span></a></th>
			</tr>
			<tr>
				<th>编号</th><th>部门名称</th><th>联系电话</th><th>描述</th><th>操作</th>
			</tr>
			<c:forEach items="${deps }" var="d">
				<tr>
					<td>${d.departid }</td><td>${d.departname }</td><td>${d.tel }</td><td>${d.ddesc }</td>
					<td><a href="depart!show?id=${d.departid }">修改</a>&nbsp;<a href="depart!del?id=${d.departid }" onclick="return confirm('是否确认删除？');">删除</a></td>
				</tr>
			</c:forEach>
		</table>
        </div>
		<div><pt:page pageIndex="${page }" url="depart!list?" pageMax="${tpage }"/></div>
	</div>
</body>
</html>
